home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9399 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: newton.whit.org!krw
  2. From: krw@PROBLEM_WITH_INEWS_DOMAIN_FILE (krw)
  3. Newsgroups: comp.unix.programmer,comp.lang.c
  4. Subject: Re: Runtime ANSI C checking tool?
  5. Followup-To: comp.unix.programmer,comp.lang.c
  6. Date: 11 Mar 1996 08:29:36 GMT
  7. Organization: CSAC
  8. Message-ID: <4i0o9g$t79@natasha.rmii.com>
  9. References: <DnI89B.EnH@pgh.nauticom.net> <p5ag239ede.fsf@lemming.wellfleet.com> <TANMOY.96Mar7180501@qcd.lanl.gov> <826474756snz@genesis.demon.co.uk>
  10. NNTP-Posting-Host: newton.whit.org
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Lawrence Kirby (fred@genesis.demon.co.uk) wrote:
  14. : In article <TANMOY.96Mar7180501@qcd.lanl.gov>
  15. :            tanmoy@qcd.lanl.gov "Tanmoy Bhattacharya" writes:
  16.  
  17. : >In article <826219697snz@genesis.demon.co.uk>
  18. : >Lawrence Kirby <fred@genesis.demon.co.uk> writes:
  19. : >
  20. : >LK: >Well, a well-written ANSI C compiler should handle all language
  21. : >LK: >violations, and a well-written ANSI C system library should catch all
  22. : >LK: >runtime violations (passing NULL to strcpy() or something, for
  23. : >LK: >example).
  24. : >LK: 
  25.  
  26. I don't know about the NULL stuff, but the man page on my gcc compiler
  27. gives -ansi -pedantic for the switches to cause the compiler to reject
  28. non-standard C source code.  I don't know if it works, but try using
  29. curses or something and see if it works
  30.  
  31. Ken.
  32.  
  33. --
  34. /--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\
  35. \   The Whittaker's domain!                                                /
  36. /   Try our MUD (Multi User Domain)                                        \
  37. \   Come to:                                                               /
  38. /   aGe oF iNsaNitY                                                        \
  39. \   telnet to: newton.whit.org 4000                                        /
  40. /--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\--/--\
  41.